package org.jacquesh.mall.panel.api;

import org.jacquesh.mall.common.model.JsResult;
import org.jacquesh.mall.panel.mapper.JacqueshMallPanelsMapper;
import org.jacquesh.mall.panel.model.JacqueshMallPanels;
import org.jacquesh.mall.service.PanelService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Jacquesh
 * @version 1.0
 * @date 2020/9/25 22:39
 */
@RestController
class PanelApi implements PanelService {
    @Resource
   private JacqueshMallPanelsMapper mallPanelsMapper;
   public  JsResult<List<JacqueshMallPanels>> listAll() {
       List<JacqueshMallPanels>  list=mallPanelsMapper.selectAll();
       return JsResult.ok(list);
    }
}
